package com.community.backend.mapper;

import com.community.backend.pojo.Interaction;
import com.community.backend.pojo.dto.InteractionQueryDTO;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface InteractionMapper {
    Page<Interaction> pageQuery(InteractionQueryDTO interactionQueryDTO);

    void add(Interaction interaction);
    @Update("update interaction set deleted = 1 where id = #{id}")
    void deleteById(Integer id);

    void update(Interaction interaction);
}
